package cn.redragon.soa.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum AmqpError implements BaseError {

    MQ_RESPONSE_TIMEOUT("AMQP_1", "Waiting for MQ response timeout."),
    MQ_RESPONSE_UNKNOWN_ERROR("AMQP_2", "Unrecognized response of MQ."),
    MQ_RESPONSE_ERROR("AMQP_3", "Response from Queue: code={0}, msg={1}.");

    private final String code;
    private final String message;
}
